<script>
    // Closing empty default nw.js window; we use the chrome window created in eventPage.js.
    // The window created in eventPage.js also has some hocks to cleanup stuff when closing.
    // Restoring window size, position and state also works out-of-the-box.
    window.close();
</script>